package com.study.hot.di.dagger.dagger_in_android;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import dagger.android.AndroidInjection;

/**
 * <pre>
 *     author : slx
 *     time   : 2020/11/27
 *     desc   :
 * </pre>
 */
public class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        // 告别繁琐的在每个Activity中注入
        AndroidInjection.inject(this);
        super.onCreate(savedInstanceState);
    }
}